package web.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import web.entity.User;
import web.service.RegisterService;
import web.utils.ResponseResult;

@RestController
public class RegisterController {

    @Autowired
    RegisterService registerService;

    @RequestMapping("/register")
    public ResponseResult register(@RequestBody User user) {
        return registerService.register(user);
    }
}
